package com.ruifu.common.feign.fallback;

import com.ruifu.common.feign.RemoteWorkSheetService;
import com.ruifu.common.vo.ResultVO;
import com.ruifu.common.vo.worksheet.WsCommonSheet;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.math.BigInteger;

/**
 * @author yuanyundi
 * @create 2020/05/15
 */
@Slf4j
@Component
public class RemoteWsServiceFallbackImpl implements RemoteWorkSheetService {
    @Setter
    private Throwable cause;

    @Override
    public WsCommonSheet feignFindWsById(BigInteger cmId, String classFlag) {
        log.error("feign feignFindWsById:{}", cmId, cause);
        return null;
    }

    @Override
    public void feignReviewCommit(BigInteger cmId, String classFlag, Boolean isEnd) {
        log.error("feign feignReviewCommit:{}", cmId, cause);
    }

    @Override
    public boolean feignSynchroData(Long sourceSetId, Long targetSetId, String from) {
        log.error("feign feignSynchroData:{}", sourceSetId, cause);
        return false;
    }
}
